import request from '@/utils/request'
/********
 查询用户默认收货地址列表
 *******/
export const getUserAddress = (data) => {
  return request({
    url: '/system/address/getUserAddress',
    method: 'post',
    data
  })
}
/********
 新增保存收货地址
 *******/
export const addressAdd = (data) => {
  return request({
    url: '/system/address/add',
    method: 'post',
    data
  })
}
/********
 修改保存收货地址
 *******/
export const addressEdit = (data) => {
  return request({
    url: '/system/address/edit',
    method: 'post',
    data
  })
}
/********
 删除收货地址
 *******/
export const addressRemove = (data) => {
  return request({
    url: '/system/address/remove',
    method: 'post',
    params: data
  })
}
